package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketOrder;

import cn.taoticket.fallback.TaoticketOrderClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-order-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketOrderClientFallBack.class)
public interface RestTaoticketOrderClient {
@RequestMapping(value = "/getTaoticketOrderById",method = RequestMethod.POST)
public TaoticketOrder getTaoticketOrderById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketOrderListByMap",method = RequestMethod.POST)
public List<TaoticketOrder>	getTaoticketOrderListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketOrderCountByMap",method = RequestMethod.POST)
public Integer getTaoticketOrderCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketOrder",method = RequestMethod.POST)
public Long qdtxAddTaoticketOrder(@RequestBody TaoticketOrder taoticketOrder)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketOrder",method = RequestMethod.POST)
public Long qdtxModifyTaoticketOrder(@RequestBody TaoticketOrder taoticketOrder)throws Exception;
}

